import {
	defineStore
} from 'pinia';
import {
	getUserInfoApi
} from '../api/mine'
export const useUserStore = defineStore('user', {
	state: () => {
		return {
			userInfo: {}
		};
	},
	actions: {
		getUserInfoAction() {
			getUserInfoApi().then(res => {
				if (res.code == 200) {
					this.userInfo = res.data;
				}
			})
		}
	},
});